package cn.tedu.sp04.order.feignclient;

import cn.tedu.sp01.pojo.User;
import cn.tedu.web.util.JsonResult;
import org.springframework.stereotype.Component;

@Component
public class UserFeignServiceFB implements UserFeignService{
    @Override
    public JsonResult addScore(Integer userId, Integer score) {
        return JsonResult.err().msg("You have not received!!");
    }

    @Override
    public JsonResult<User> getUser(Integer userId) {
        User u=new User(userId,"缓存用户名"+userId,"缓存密码"+userId);

        return JsonResult.ok().data(u);
    }
}
